<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>视频播放</title>
</head>
<body>


<iframe
        id="live-ifr"
        src="http://shangzhibo.tv/watch/1989439?player"
        style="width: 640px; height: 360px; overflow:hidden;"
        scrolling="no" allowFullScreen>
</iframe>

<input id='key' type="text"  />
<button id="live-btn">点击</button>

<script>

    var btn = document.getElementById('live-btn');

    btn.onclick = function(){

        var key = document.getElementById('key').value;
        var live_src = "http://shangzhibo.tv/watch/" + key + "?player";

        var live_ifr = document.getElementById('live-ifr').src = live_src;

    };


</script>
</body>
</html>